Reduced overall SizeRequestCache size
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 21 Sep 2010 03:52:49 +0000 (12:52 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 21 Sep 2010 03:57:27 +0000 (12:57 +0900)
commitca251cf1d45ed6be71065d058313b9b22d36f10d
tree2f7e29336c5d101ae327ec4ec4219f6e6686e6d2
parent6ba904486ce6f3c2e6f8d95288c9b66ce29f4ce3
Reduced overall SizeRequestCache size

This patch changes the 'age' counting previous approach taken
verbatim from clutter and changes it for a counter of validated
caches and an index to the last cached value which we use to
round-robin through the cache if ever a widget is requested
for more than 3 contextual sizes (cache is reduced by 3 * sizeof (int)
per widget private data).
gtk/gtkprivate.h
gtk/gtksizerequest.c